package com.example.ch04activityandintent;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

import javax.security.auth.login.LoginException;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = "MainActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Log.i(TAG, "调用onCreate（）");
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.i(TAG, "调用onStart（）");
    }

    @Override
    protected void onPostResume() {
        super.onPostResume();
        Log.i(TAG, "调用onPostResume（）");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i(TAG, "调用onStop()");

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i(TAG, "调用onDestroy()");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i(TAG, "调用onRestart");
    }
}
